<?php

namespace App\Repositories\Eloquent\Api;

use App\Repositories\Eloquent\BaseModel;
use EasySwoole\Mysqli\QueryBuilder;
use EasySwoole\ORM\AbstractModel;


class ApiNodeModel extends AbstractModel
{
    use BaseModel;
    protected $tableName = 'k_sys_api_nodes';
    protected $connectionName = 'wr';
    protected $autoTimeStamp = true;
    protected $createTime = 'add_time';
    protected $updateTime = 'update_time';

    public function getItemByUrl(string $url = ''){
        return $this->create()->get(['url'=>$url]);
    }
}